<!--
 * @Author: daidai
 * @Date: 2022-03-01 15:27:58
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-05-07 11:24:14
 * @FilePath: \web-pc\src\pages\big-screen\view\indexs\right-center.vue
-->
<template>
  <div  class="right_bottom_wrap beautify-scroll-def"  style=" margin-top: 10px;">
    <SeamlessScroll :is="components" 
    :list="list"      
     :singleHeight="defaultOption.singleHeight"
      :step="defaultOption.step"
      :limitScrollNum="defaultOption.limitScrollNum"
      :hover="defaultOption.hover"
      :singleWaitTime="defaultOption.singleWaitTime"
      :wheel="defaultOption.wheel">
      <ul class="right_center ">
        <li class="right_center_item" v-for="(item, i) in list" :key="i">
          <span class="orderNum">{{ i + 1 }}</span>
          <div class="inner_right">
            <!--            <div class="dibu"></div>-->
            <div >
              <div class="info">
                <span class="labels " style="font-size: 22px;font-weight: blod;color: #fff">{{item.name}}</span>
                <!--                <span class="contents zhuyao"> {{ item.gatewayno }}</span>-->
              </div>
              <div class="info" style="font-size: 21px;color: #ccc">
                <span class="labels">总体完成值：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.zongtiwancheng }}</span>
              </div>
              <div class="info">
                <span class="labels">新客户：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.xinkehu  }}</span>
              </div>
              <div class="info">
                <span class="labels">爱家光网：</span>
                <span style="font-size: 14px;color: #ccc"> {{ item.alertvalue  }}</span>
              </div>
              <div class="info">
                <span class="labels">爱家光网(含云电脑)：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.aijiahan  }}</span>
              </div>
              <div class="info">
                <span class="labels">线盒 收：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.xianhe  }}</span>
              </div>
              <div class="info">
                <span class="labels">降档(生效)：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.jiangdangshengxiao  }}</span>
              </div>
              <div class="info">
                <span class="labels">离网：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.liwang  }}</span>
              </div>
            </div>
            <div style="margin-top:33px;">
              <div class="info" style="font-size: 19px;color: #ccc">
                <span class="labels">完成率：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.wanchenglv }}</span>
              </div>
              <div class="info" style="font-size: 19px;color: #ccc">
                <span class="labels">重点产品：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.zhongdianchanpin }}</span>
              </div>
              <div class="info" style="font-size: 19px;color: #ccc">
                <span class="labels">有效爱家光网：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.youxiaoaijia }}</span>
              </div>
              <div class="info" style="font-size: 19px;color: #ccc;margin-top: 15px">
                <span class="labels">调消费：</span>
                <span style="font-size: 16px;color: #ccc"> {{ item.diaocefei }}</span>
              </div>
              <div class="info" style="font-size: 19px;color: #ccc">
                <span class="labels">降档(受理)：</span>
                <span style="font-size: 16px;color: #ccc" > {{ item.jiangdangshouli }}</span>
              </div>
            </div>
          </div>
        </li>
      </ul>
    </SeamlessScroll>
  </div>
  <!--  <Reacquire v-else @onclick="getData" style="line-height:200px" />-->

</template>

<script lang="ts" setup>
import SeamlessScroll from '@/components/seamless-scroll'
import Kong from '@/components/kong.vue'
import {ref,onMounted} from "vue"
const {data } = defineProps(['data'])
const  list =ref([]);
const defaultOption = ref({
      step: 3, // 数值越大速度滚动越快
       hover: true, // 是否开启鼠标悬停stop
       wheel: false,//在开启鼠标悬停的情况下是否开启滚轮滚动，默认不开启
       openWatch: true, // 开启数据实时监控刷新dom
       direction: 1, // 0向下 1向上 2向左 3向右
       limitScrollNum: 1, // 开始无缝滚动的数据量 this.dataList.length
       singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
       singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
       singleWaitTime: 1000, // 单步运动停止的时间(默认值1000ms)
       singleHeight: 300,
       limitScrollNum: 1,
})
onMounted(() => {
  list.value =data
})



</script>
<style lang='scss' scoped>
.right_center {
  width: 100%;
  height: 100%;

  .right_center_item{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    padding: 10px;
    font-size: 14px;
    color: #fff;

    .orderNum {
      margin: 0 20px 0 -20px;
    }
    .inner_right {
      position: relative;
      height: 100%;
      width: 400px;
      flex-shrink: 0;
      line-height: 1.5;
      display: flex;
      justify-content: space-around;
      .dibu {
        position: absolute;
        height: 2px;
        width: 104%;
        background-image: url("../../assets/img/zuo_xuxian.png");
        bottom: -12px;
        left: -2%;
        background-size: cover;
      }
    }

    .info {
      margin-right: 10px;
      display: flex;
      align-items: center;
      margin: 7px 0;

      .labels {
        flex-shrink: 0;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.6);
      }

      .zhuyao {
        color: $primary-color;
        font-size: 15px;
      }

      .ciyao {
        color: rgba(255, 255, 255, 0.8);
      }

      .warning {
        color: #E6A23C;
        font-size: 15px;
      }
    }

  }
}

.right_center_wrap {
  margin-top: 0px;
  overflow: hidden;
  width: 100%;
  height: 264px;
}

.overflow-y-auto {
  overflow-y: auto;
}
</style>